package demo

// the primary constructor
class Pizza(var crustSize: Int, var crustType: String) {
  val DefaultCrustSize = 12
  val DefaultCrustType = "THIN"

  // one-arg auxiliary constructor
  def this(crustSize: Int) = {
    this(crustSize, "THIN")
  }

  // one-arg auxiliary constructor
  def this(crustType: String) = {
    this(12, crustType)
  }

  // zero-arg auxiliary constructor
  def this() = {
    this(12, "THIN")
  }

  override def toString = s"A $crustSize inch pizza with a $crustType crust"

}
